<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="采购开票" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="updateSAP()"
                        ng-disabled="!btnPermission.purchaseAdd"
                        title="{{!btnPermission.purchaseAdd?'无权限执行此操作':''}}">开票申请</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids"
                                    v-if="!!btnPermission.purchaseInvoicerExport">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    v-if="!!btnPermission.purchaseInvoicerExportAll" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索
                    </button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" ng-model="condition.invoicePaperNo" class="form-control txt-search"
                            placeholder="供货商名称" ng-model="condition.invoiceNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                    reset-data="reset()">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">开票申请单号：</label>
                            <input type="text" ng-model="condition.invoiceNo" class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">供货商名称：</label>
                            <input type="text" ng-model="condition.invoicePaperNo" class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">状态：</label>
                            <select name="reverseStatus" class="form-control" ng-model="condition.status">
                                <option value="">请选择</option>
                                <option value=0>待审核</option>
                                <option value=1>审核通过</option>
                                <option value=2>审核拒绝</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">申请人：</label>
                            <input type="text" ng-model="condition.payerOrgName" class="form-control">
                        </div>
                        <div class="form-group clearfix m-b-none">
                            <label class="control-label">申请日期：</label>
                            <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showOrderDateStart = !showOrderDateStart"
                                ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                                is-open="showOrderDateStart" close-text="关闭" modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix m-b-none">
                            <label class="control-label"></label>
                            <label class="control-label wave-line">~</label>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label"></label>
                            <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showOrderDateEnd = !showOrderDateEnd"
                                ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                                is-open="showOrderDateEnd" close-text="关闭" modal-size="small" readonly>
                        </div>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="false"
                has-check-col="true"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectAll()"></div>
                                    </th>
                                    <th width="160" class="text-left th-check border-l-none"
                                        style="padding-left: 10px;">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-click="toSort(tableConfig.tableCol, $index)"
                                        ng-show="!!itemCol.isShow">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item)">
                                        </div>
                                    </td>
                                    <td width="160">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="!btnPermission.purchaseEdit || !editList[$index]"
                                            ng-click="edit(item, $index)">编辑</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="!btnPermission.purchaseDel || !delList[$index]"
                                            ng-click="del(item, $index)">删除</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="!btnPermission.purchaseAudit || !auditList[$index]"
                                            ng-click="shenHeSAP(item, $index)">审核</button>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow"
                                        title="{{item[itemCol.dataField]}}">
                                        <div ng-switch="itemCol.type">
                                            <div ng-switch-when="click">
                                                <a class="btn-operate m-r-xs"
                                                    ng-click="getDetailInfo(item, itemCol.clickFn)">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                            </div>
                                            <div ng-switch-when="operate">
                                                <button type="button" class="btn btn-operate m-r-xs"
                                                    ng-click="sign(item.id)"
                                                    ng-disabled="item.isSign === 1 || !btnPermission.invoiceSign"
                                                    title="{{!btnPermission.invoiceSign?'无权限执行此操作':''}}">签收
                                                </button>
                                            </div>
                                            <div ng-switch-default>
                                                <span>{{item[itemCol.dataField]}}</span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="开票申请" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div ng-show="stepList.curStep == 0">
                <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                    <div class="form-group col-xs-2 m-b-sm">
                        <label class="col-xs-6 control-label max-w-100"><i>*</i>供货商名称：</label>
                        <div class="col-xs-6 wrapper-none">
                            <input type="text" name="purchaseOrgName" class="form-control light-bg"
                                ng-model="orderObj.purchaseOrgName" ng-click="selectDealer()" required yb-focus readonly
                                placeholder="请选择">

                            <div class="msg-block"
                                ng-if="orderForm.purchaseOrgName.$dirty || (orderForm.purchaseOrgName.$invalid && submitted)">
                                <div class="error-msg"
                                    ng-if="orderForm.purchaseOrgName.$error.required && !orderForm.purchaseOrgName.focused">
                                    <div class="msg-triangle"></div>
                                    必填项，请填写
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-2 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                        <div class="col-xs-8 wrapper-none">
                            <select name="useMachineNo" class="form-control" ng-model="orderObj.type" yb-focus>
                                <option value="0">采购入库单</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group col-xs-5 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">入库日期：</label>
                        <div class="col-xs-4 wrapper-none">
                            <input type="text" class="form-control date-picker"
                                ng-model="orderObj.startTime" datepicker-popup="{{'yyyy-MM-dd HH:mm:ss'}}"
                                ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                                ng-change="checkDate(orderObj, 'startTime', 'endTime')" modal-size="small" readonly>

                        </div>
                        <label class="col-xs-1 control-label max-w-100" style="text-align: center;">~</label>
                        <div class="col-xs-4 wrapper-none">
                            <input type="text" class="form-control date-picker"
                                ng-model="orderObj.endTime" datepicker-popup="{{'yyyy-MM-dd HH:mm:ss'}}"
                                ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                                ng-change="checkDate(orderObj, 'startTime', 'endTime')" modal-size="small" readonly>
                        </div>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">单据号：</label>
                        <div class="col-xs-6 wrapper-none">
                            <input type="text" name="purchaseInboundOrder" class="form-control"
                                ng-model="orderObj.purchaseInboundOrder" yb-focus maxlength="99">
                        </div>
                        <div class="col-xs-2 p-l-sm p-r-none control-btn">
                            <button class="btn btn-default form-control" type="button"
                                ng-click="searchAddress()">搜索</button>
                        </div>
                    </div>
                </form>
                <div class="clearfix">
                    <div class="pos-a-full" style="right: 50%;top: 10px;margin-top: 70px;">
                        <div yb-table-fixed class="table-fixed-wrap fix-left" style="top:50px; bottom: 50px;">
                            <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                                <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                    <thead>
                                        <tr>
                                            <th width="40" class="text-center th-check border-l-none">
                                                <div yb-check-box yb-checked="markInfo.allChecked"
                                                    yb-click="orderSelectAll()"></div>
                                            </th>
                                            <th ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}"
                                                ng-click="toSort(addLeftTableConfig.tableCol, $index)"
                                                ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                                <div yb-thead-operate ng-model="itemCol"
                                                    target-width="addLeftTableConfig.scrollWidth"></div>
                                            </th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="orderDataList.length > 0" ng-style="tbStyle.billFixedWidth">
                                <table class="table-fixed border-none" width="{{addLeftTableConfig.scrollWidth}}">
                                    <tbody>
                                        <tr ng-repeat="item in orderDataList track by $index"
                                            ng-class="{'row-selected': $index === markInfo.curRow}"
                                            ng-click="selectRow($index)">
                                            <td width="40" class="text-center border-l-none">
                                                <div yb-check-box yb-checked="item.isChecked"
                                                    yb-click="orderSelectSingle(item)"></div>
                                            </td>
                                            <td class="spill-dots"
                                                ng-repeat="itemCol in addLeftTableConfig.tableCol track by $index"
                                                width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                                title="{{item[itemCol.dataField]}}">
                                                <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                                <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="orderDataList.length === 0">暂时没有数据
                            </div>
                        </div>
                        <div class="bottom-area page-bar wrapper-y-sm clearfix">
                            <div yb-page-info ng-model="orderPageInfo" yb-refresh="searchAddress()"></div>
                        </div>
                    </div>
                    <div class="pos-a-full" style="left: 50%; padding-left: 10px;top:10px;margin-top: 70px;">
                        <div yb-table-fixed class="table-fixed-wrap" style="top:50px; bottom: 50px; left: 10px;">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="130%">
                                    <thead>
                                        <tr>
                                            <th width="15%">单据类型</th>
                                            <th width="15%">订单号</th>
                                            <th width="15%">单据号</th>
                                            <th width="15%">零件编号</th>
                                            <th width="15%">零件中文名</th>
                                            <th width="15%">单位</th>
                                            <th width="20%">入库数量</th>
                                            <th width="15%">单价</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                                <table class="table-fixed border-none" width="130%">
                                    <tbody>
                                        <tr ng-repeat="item in orderObj.materialList track by $index">
                                            <td width="15%" class="spill-dots" title="{{item.type}}">{{item.type}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.purchaseBillNo}}">{{item.purchaseBillNo}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.purchaseOrder}}">
                                                {{item.purchaseOrder}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.materialNo}}">
                                                {{item.materialNo}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.materialName}}">
                                                {{item.materialName}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.unit}}">{{item.unit}}</td>
                                            <td width="20%" class="spill-dots" title="{{item.realAmount}}">
                                                {{item.realAmount}}</td>
                                            <td width="15%" class="spill-dots" title="{{item.price}}">{{item.price}}
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0">
                                暂时没有数据</div>
                        </div>
                        <div class="bottom-area page-bar wrapper-y-sm text-right clearfix">
                            <button type="button" class="btn btn-primary" ng-disabled="orderObj.materialList.length==0"
                                ng-click="nextStep()">下一步
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 第二步 -->
            <div ng-show="stepList.curStep == 1">
                <div class="row" style="margin-top: 20px !important;">
                    <div class="col-md-5 col-md-offset-1">供货商名称： {{orderObj.purchaseOrgName}}</div>
                    <div class="col-md-3">申请开票总金额： {{orderObj.totalSum.toFixed(2)}}</div>
                </div>
                <div class="row">
                    <div class="col-md-10 col-md-offset-1" style="margin-top:20px;">
                        <label style="float: left;line-height: 24px;"> 备注：</label>
                        <input type="text" ng-model="orderObj.remark
                                " style="width: 90%;">
                    </div>
                </div>
                <div materiel-selector show-toolbar="toolbarConfig.showMateriel" is-default-warehouse="true"
                    selected-list="orderObj.materialList"
                    warehouse-code="orderObj.headerInfo.outLocation" area-code="orderObj.headerInfo.outArea"
                    mark-stock-status="true"></div>
                <div class="main-area d-b-60" style="top:150px;">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="80">
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-if="itemCol.type!=='cost'||costPriceShow">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="newTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in orderObj.materialList track by $index">
                                        <td width="80">
                                            <button type="button" class="btn btn-operate"
                                                ng-click="delSelectItem(item, $index)">删除</button>
                                        </td>
                                        <td ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}"
                                            ng-if="itemCol.type!=='cost'||costPriceShow">

                                            <div class="spill-dots" ng-if="!itemCol.input && !itemCol.txtType">
                                                <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                    ng-if="!!itemCol.clickFn">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                                <span ng-if="!itemCol.clickFn">
                                                    {{item[itemCol.dataField]}}
                                                </span>
                                            </div>

                                            <div ng-if="itemCol.input && itemCol.inputType === 'txt' && !itemCol.txtType"
                                                class="td-edit pos-r">
                                                <input type="text" class="form-control edit"
                                                    ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                    ng-blur="hideQtyTip(item)" ng-change="checkStock(item)"
                                                    yb-number-input max="99999.999" maxlength="9" disable-decimal="true"
                                                    decimal-places="3"
                                                    ng-class="{'error': !!item.qtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                                'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                                <div class="pos-a tool-tips" ng-if="!!item.qtyErr || item.showStockErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.qtyErrMsg}}</div>
                                                </div>
                                            </div>

                                            <div ng-if="itemCol.input && itemCol.inputType === 'price' && !itemCol.txtType"
                                                class="td-edit pos-r">
                                                <input type="text" class="form-control edit"
                                                    ng-model="item[itemCol.dataField]" ng-change="checkStock(item)"
                                                    yb-number-input max="99999.999" maxlength="9"
                                                    disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': !!item.priceErr}">
                                                <div class="pos-a tool-tips" ng-if="item.priceErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.priceErrMsgTxt}}</div>
                                                </div>
                                            </div>

                                            <div ng-if="itemCol.txtType === 'negativeNum'" class="td-edit pos-r">
                                                <span>
                                                    <span ng-if="item.type == '退货出库'">-</span>
                                                    {{item[itemCol.dataField]}}
                                                </span>
                                            </div>

                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="orderObj.materialList.length === 0">暂时没有数据
                        </div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="upStep()">上一步</button>
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="saveShenQing(form.$valid)">提交</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
                </div>
            </div>
        </div>

        <div tab heading="审核" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="row" style="margin-top: 20px !important;">
                <div class="col-md-5 col-md-offset-1">供货商名称： {{orderObj.supplierName}}</div>
                <div class="col-md-3">经销商总金额： {{orderObj.totalSum}}</div>
            </div>
            <div class="row">
                <div class="col-md-10 col-md-offset-1" style="margin-top:10px;">
                    <label style="float: left;line-height: 24px;"> 备注：</label>
                    <div style="line-height: 24px;">
                        {{orderObj.remark}}
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:230px; right: 240px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{auditTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in auditTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editMaterielConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{auditTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialList track by $index">
                                    <td ng-repeat="itemCol in auditTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.returnApplyDetailVOs.length === 0">
                        暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:230px; left: auto; width: 225px;">
                <div class="main-wrap p-b-lg over-flow-h">
                    <textarea yb-word-count max-size="100" name="auditDesc" class="form-control full"
                        ng-model="auditInfo.auditDesc" ng-class="{'error': !detailInfo.auditDesc && submitted}"
                        placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="auditPurchase(1)">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="auditPurchase(2)">拒绝</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="row" style="margin-top: 20px !important;">
                <div class="lineInfo">
                    <div class="col-md-3 col-md-offset-1">开票申请单号： {{purchaseInvoiceInfo.purchaseInvoiceOrder}}</div>
                    <div class="col-md-3">供货商名称： {{purchaseInvoiceInfo.supplierName}}</div>
                    <div class="col-md-3">开票总金额： {{purchaseInvoiceInfo.invoicePrice}}</div>
                    <div class="col-md-2">已申请付款金额： {{purchaseInvoiceInfo.applyPrice}}</div>
                </div>
                <div class="lineInfo">
                    <div class="col-md-3 col-md-offset-1">状态：
                        {{purchaseInvoiceInfo.status == 0 ? "待审核" : (purchaseInvoiceInfo.status == 1 ? "审核通过" : "审核未通过")}}
                    </div>
                    <div class="col-md-3">申请人：{{purchaseInvoiceInfo.applyName}}</div>
                    <div class="col-md-3">申请日期：{{purchaseInvoiceInfo.applyTime}}</div>
                    <div class="col-md-2">审核人：{{purchaseInvoiceInfo.reviewer}}</div>
                </div>
                <div class="lineInfo">
                    <div class="col-md-3 col-md-offset-1">
                        审核结果：{{purchaseInvoiceInfo.result == 0 ? "待审核" : (purchaseInvoiceInfo.result == 1 ? "审核通过" : "审核未通过")}}
                    </div>
                    <div class="col-md-3">审核意见：{{purchaseInvoiceInfo.suggestion}}</div>
                    <div class="col-md-3">审核时间：{{purchaseInvoiceInfo.reviewTime}}</div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-10 col-md-offset-1" style="margin-top:10px;">
                    <label style="float: left;line-height: 24px;"> 备注：</label>
                    <div style="line-height: 24px;">
                        {{purchaseInvoiceInfo.remark}}
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:230px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{auditTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in auditTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editMaterielConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{auditTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderObj.materialList track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in auditTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots" ng-if="!itemCol.input"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                        <div ng-if="itemCol.input && itemCol.inputType === 'num'" class="td-edit pos-r"
                                            title="{{item[itemCol.dataField]}}">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-change="checkQty(item, itemCol.dataField)" yb-number-input
                                                max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': item.qtyErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.returnApplyDetailVOs.length === 0">
                        暂时没有数据</div>
                </div>
            </div>

            <div class="bottom-area btn-bar text-center clearfix">

                <button type="button" class="btn btn-default" ng-click="cancel()">返回</button>
            </div>
        </div>
    </div>
</div>